home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / DJINC106.ARJ / DOS.H < prev    next >
C/C++ Source or Header  |  1992-03-09  |  1KB  |  56 lines

  1. #ifndef _DOS_H_
  2. #define _DOS_H_
  3.  
  4. union REGS {
  5.   struct {
  6.     unsigned long ax;
  7.     unsigned long bx;
  8.     unsigned long cx;
  9.     unsigned long dx;
  10.     unsigned long si;
  11.     unsigned long di;
  12.     unsigned long cflag;
  13.     unsigned long flags;
  14.   } x;
  15.   struct {
  16.     unsigned char al;
  17.     unsigned char ah;
  18.     unsigned short upper_ax;
  19.     unsigned char bl;
  20.     unsigned char bh;
  21.     unsigned short upper_bx;
  22.     unsigned char cl;
  23.     unsigned char ch;
  24.     unsigned short upper_cx;
  25.     unsigned char dl;
  26.     unsigned char dh;
  27.     unsigned short upper_dx;
  28.   } h;
  29. };
  30.  
  31. struct SREGS {
  32.   unsigned short cs;
  33.   unsigned short ds;
  34.   unsigned short es;
  35.   unsigned short fs;
  36.   unsigned short gs;
  37.   unsigned short ss;
  38. };
  39.  
  40. #ifdef __cplusplus
  41. extern "C" {
  42. #endif
  43.  
  44. int bdos(int func, unsigned dx, unsigned al);
  45. int bdosptr(int func, void *dx, unsigned al);
  46. int int86(int ivec, union REGS *in, union REGS *out);
  47. int int86x(int ivec, union REGS *in, union REGS *out, struct SREGS *seg);
  48. int intdos(union REGS *in, union REGS *out);
  49. int intdosx(union REGS *in, union REGS *out, struct SREGS *seg);
  50.  
  51. #ifdef __cplusplus
  52. }
  53. #endif
  54.  
  55. #endif
  56.